package com.df.springmvc.workflow.api.services;

import java.util.HashMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.df.springmvc.supper.SupperServices;
import com.df.springmvc.workflow.api.dao.APIDao;

/**
 * 本类只做数据运算处理
 * @author Turner
 */
@Service
public class APIServices extends SupperServices{
	@Autowired
	APIDao dao;
	
	public Object doNew(String proc_def_key,String form_guid,String title,HashMap<String,Object> paramMap) throws Exception{
		// TODO Auto-generated method stub
		return dao.doNew(proc_def_key,form_guid,title,paramMap);
	}
	public Object doClaim(String taskId,String userId,HashMap<String,Object> paramMap) throws Exception{
		// TODO Auto-generated method stub
		return dao.doClaim(taskId,userId,paramMap);
	}
	public Object doComplete(String taskId,String userId,HashMap<String,Object> paramMap) throws Exception{
		// TODO Auto-generated method stub
		return dao.doComplete(taskId,userId,paramMap);
	}
	public Object doReAssignee(String taskId,String userId,HashMap<String,Object> paramMap) throws Exception{
		// TODO Auto-generated method stub
		return dao.doReAssignee(taskId,userId,paramMap);
	}
	public Object doChain(String taskId,String userId,HashMap<String,Object> paramMap) throws Exception{
		// TODO Auto-generated method stub
		return dao.doChain(taskId,userId,paramMap);
	}
	public Object queryTaskIdByGuid(String form_guid) throws Exception{
		// TODO Auto-generated method stub
		return dao.queryTaskIdByGuid(form_guid);
	}
	public Object queryTaskByTaskId(String form_taskId) throws Exception{
		// TODO Auto-generated method stub
		return dao.queryTaskByTaskId(form_taskId);
	}
}
